<?php
class Login_Model_Login implements Login_Model_Mainable{
    
    private $action_handler;
    
    public function main(array $variables = null) {
        if(isset($variables['get']['page'])){
            $this->action_handler = new Login_Model_Pagedecision;
            return $this->action_handler->main($variables);
        }
        else {
            $this->action_handler = new Login_Data_Login;
            return $this->action_handler->main($variables);
        }
    }

}
